import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);

// 引入element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

// 注册element-plus所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
};

// 引入iconfont
import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/iconfont.js";

/**
 * 测试
 */
// 打包前测试
import QilinElement from "@/package/index.js";
// 打包后测试
// import QilinElement from "../dist/qilin-element.es.js";
// import "../dist/style.css";
// 上线之后测试
// import QilinElement from "qilin-element3x";
// import "qilin-element3x/style.css";

app.use(ElementPlus).use(QilinElement).mount('#app');
